﻿@model IEnumerable<WeberTimeTracker.Models.ClientProjects>
				 
@{
    ViewBag.Title = "Index";
		Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Client Projects</h2>

<table>
    <tr>
        <th>
            Client Name
        </th>
        <th>
            Project
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.HiddenFor(modelItem => item.Client_ID)
            @Html.DisplayFor(modelItem => item.Client_Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Project_Name)
        </td>
        <td>
            @Html.ActionLink("ViewInvoice", "InvoiceView", new { id = item.Client_ID })  
        </td>
    </tr>
}

</table>